package com.font.web.zhongyao;

import com.font.bean.DynamicValidateForm;
import com.font.bean.result.Result;
import com.font.service.IntroduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zhongyao")
public class IntroducceController {

    @Autowired
    IntroduceService introduceService;

    @PostMapping ("introList")
    public Result introList(@RequestBody DynamicValidateForm validateForm){
        System.err.println(validateForm.getUsername());
        return  introduceService.introList(validateForm);
    }
}
